<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<form id="userForm">
  <input type="hidden" name="id" th:value="${role?.id}">
  <div class="form-group row">
    <label for="roleName" class="col-sm-2 col-form-label">角色名称</label>
    <div class="col-sm-10">
      <input type="text" th:value="${role?.roleName}"
             name="roleName" class="form-control" id="roleName"
             placeholder="请填写角色名称" required>
      <div class="invalid-feedback">请填写角色名称</div>
    </div>
  </div>
  <div class="form-group row">
    <label for="description" class="col-sm-2 col-form-label">角色描述</label>
    <div class="col-sm-10">
      <input type="text" th:value="${role?.description}" name="description" class="form-control"
             id="description"
             placeholder="请填写角色描述" required>
      <div class="invalid-feedback">请填写角色描述</div>
    </div>
  </div>
  <div class="form-group row">
    <label for="sort" class="col-sm-2 col-form-label">排序</label>
    <div class="col-sm-10">
      <input type="text" th:value="${role?.sort}" name="sort" class="form-control"
             id="sort"
             placeholder="请填写排序值" required>
      <div class="invalid-feedback">请填写排序值</div>
    </div>
  </div>
</form>